package pers.chao.tool.http;

import pers.chao.tool.infrastructure.exception.FormativeException;

/**
 * Description: 默认状态码抽象类
 *
 * @author W.Chao
 * @date 2021/1/11 23:59
 **/
public abstract class StatusCodeException extends FormativeException {
	private static final long serialVersionUID = -1;

	private StatusCode statusCode;

	public StatusCodeException(StatusCode statusCode) {
		super();
		this.statusCode = statusCode;
	}

	public StatusCodeException(StatusCode statusCode, String message) {
		super(message);
		this.statusCode = statusCode;
	}

	public StatusCodeException(StatusCode statusCode, Throwable cause) {
		super(cause);
		this.statusCode = statusCode;
	}

	public StatusCodeException(StatusCode statusCode, String format, Object... args) {
		super(format, args);
		this.statusCode = statusCode;
	}

	public StatusCode getStatusCode() {
		return statusCode;
	}
}
